function echart(main,data) {
	var echart=echarts.init(main);
	var option = {
		tooltip: {
			trigger: 'axis',
			triggerOn: "click",
			lineStyle: {
				opacity: 0.5
			}
		},
		grid: {
			x: "5%",
			y: "10%",
			x2: "6%",
			y2: "15%",
			containLabel: true
		},
		//图例
		legend: {
			data: [{
					name: data.legend.max,
					icon: 'roundRect',
				},
				{
					name: data.legend.weight,
					icon: 'roundRect',
				},
				{
					name: data.legend.min,
					icon: 'roundRect',
				},
			],
			bottom: 0,
			itemGap: 20,
		},
		xAxis: [{
			name: data.x_name,
			nameLocation: 'middle',
			nameGap: 20,
			type: 'category',
			boundaryGap: true,
			splitLine: {
				//show: true,
				lineStyle: {
					opacity: 0.5,
				}
			},
			axisLabel: {
				interval: data.interval
			},
			data: data.x_data,
		}],
		yAxis: [{
			name: data.y_name,
			type: 'value',
			nameLocation: "end",
			splitNumber: 6,
			min: data.y_min,
			max: data.y_max,
			splitLine: {
				show: true,
				lineStyle: {
					opacity: 0.5
				}
			},
		}],
		series: [{
				name: '最高',
				type: 'line',
				stack: '最高',
				smooth: true,
				label: {
					normal: {
						show: false,
						position: 'bottom'
					}
				},
				areaStyle: {
					normal: {
						color: {
							type: 'linear',
							colorStops: [{
								offset: 1,
								color: '#fff' // 0% 处的颜色
							}],
							globalCoord: false // 缺省为 false
						}

					}
				},
				itemStyle: {
					normal: {
						color: '#febd49',
						opacity: 0.5,
						lineStyle: {
							color: '#febd49'
						}
					}
				},
				data: data.max_data
			},
			{
				name: data.label_name,
				type: 'line',
				stack: data.label_name,
				smooth: true,
				areaStyle: {
					normal: {
						color: {
							type: 'linear',
							colorStops: [{
								offset: 1,
								color: '#ff9a9a', // 0% 处的颜色									
							}],
							globalCoord: false // 缺省为 false
						}
					}
				},
				label: {
					show: data.label_show,
					color: "#fff",
					padding: 5,
					borderRadius: 5,
					backgroundColor: "#fc5677",
				},
				itemStyle: {
					normal: {
						color: '#fc5677',
						lineStyle: {
							color: '#fc5677'
						}
					},
					label: {
						//						show: true
					}
				},
				data: data.w_data
			},
			{
				name: '最低',
				type: 'line',
				stack: '最低',
				connectNulls: true,
				smooth: true,
				itemStyle: {
					normal: {
						color: '#a5a5a5',
						opacity: 0.5,
						lineStyle: {
							color: '#a5a5a5'
						}
					},

				},
				data: data.min_data
			},
		]
	};
	echart.setOption(option)
	return option;
}
